﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="join.aspx.cs" Inherits="weikebuluo.web.wechat.party.join" %>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="utf-8" />
	<title></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
	<meta name="format-detection" content="telephone=no" />
    <link href="styles/style.css" rel="stylesheet" type="text/css" />
    <script src="../../../scripts/JQuery.min.js" type="text/javascript"></script>
    <script src="styles/main.js" type="text/javascript"></script>
</head>

<body>
<style>
.deploy_ctype_tip{z-index:1001;width:100%;text-align:center;position:fixed;top:50%;margin-top:-23px;left:0;}.deploy_ctype_tip p{display:inline-block;padding:13px 24px;border:solid #d6d482 1px;background:#f5f4c5;font-size:16px;color:#8f772f;line-height:18px;border-radius:3px;}

a:link { 
color:#FF0000; 
text-decoration:underline; 
} 
a:visited { 
color:#FF0F00; 
text-decoration:none; 
} 
a:hover { 
color:#000000; 
text-decoration:none; 
} 
a:active { 
color:#FFFFFF; 
text-decoration:none; 
} 
</style>
<form method="post" action="join.aspx" onsubmit="return tgSubmit()">
        
        
        
<div class="main" id="wrap">
   
    
    
    
    <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">活动信息</h2>
        <dl class="f_order_list single">
        <strong>活&nbsp;&nbsp;&nbsp;&nbsp;动：</strong><input type="text" placeholder="请输入联系人手机号" id="name" name="name" value="<%=activemodel.active_theme %>" style="background:transparent;border:0px solid #a0a29e;margin-top:0px;width:200px" readonly="readonly"/>
        <br/>
        <strong style="line-height:25px">地&nbsp;&nbsp;&nbsp;&nbsp;址：</strong><span ><%=activemodel.active_address%></span>
        <br/><!-- <input type="text"  style="background:transparent;border:0px solid #a0a29e;width:280px"  id="address" name="address" value="天河区东圃地铁附近（具体周五短信通知）" readonly="readonly"/> -->
        <strong>时&nbsp;&nbsp;&nbsp;&nbsp;间：</strong><input type="text" placeholder="请输入时间" id="date" name="date" value="<%=Convert.ToDateTime(activemodel.active_time.ToString())%>-<%=activemodel.active_hour%>点" style="background:transparent;border:0px solid #a0a29e;margin-top:0px" readonly="readonly"/>
        <br/>
                  </dl>
        </div>
        
        <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">活动简介</h2>
        <dl class="f_order_list single">
        <strong><%=activemodel.active_content%></strong>
                  </dl>
                  
                    
      
        </div>
        
        <%if (!string.IsNullOrEmpty(Request.QueryString["wxid"]))
          {%>
          
            <input type="hidden"  name="wxid" value="<%=Request.QueryString["wxid"] %>" />
          <%} %>
          <%if (!string.IsNullOrEmpty(Request.QueryString["uid"]))
          {%>
          
            <input type="hidden"  name="uid" value="<%=Request.QueryString["uid"] %>" />
          <%} %>
        
         <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">预约说明</h2>
        <dl class="f_order_list single">
        <strong>预约条件：需要功勋值≧0</strong><br/>
        <strong>你的功勋：-12</strong>&nbsp;&nbsp;&nbsp;&nbsp;<br/>
        <!--<strong >注意：为了保证大家都能如期赴约，当活动人满后，首次取消活动或者无故缺席，保证金会减10元,第二次减20，第三次减30，最多减少30,并每次扣去一定的诚信值！ <a href="http://mp.weixin.qq.com/s?__biz=MzA5MTU0NTIwMg==&mid=200172132&idx=1&sn=abdbe80a10c36a5f353bfa16487c6b98#rd">更多详细介绍</a> </strong>-->
                  </dl>
        </div>
        
       <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">请输入你的详细信息</h2>
        <dl class="f_order_list single">
                		<strong>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</strong><input type="text" placeholder="请输入姓名" id="truename" name="truename" value="<%=joinmodel.join_name %>" style="background:transparent;border:1px solid #a0a29e;margin-top:0px" />
		        <br/>
		        <strong>性&nbsp;&nbsp;&nbsp;&nbsp;别：</strong> <input type="radio"  name="sex" id="sex1" value="女" <%if(joinmodel.join_sex == "女") {%>checked="checked"<%} %> />女&nbsp;&nbsp;&nbsp;&nbsp;
		                        <input type="radio"  name="sex" id="sex2" value="男" <%if(joinmodel.join_sex == "男") {%>checked="checked"<%} %>/>男
		        <br/>
		        <strong>手&nbsp;&nbsp;&nbsp;&nbsp;机：</strong><input type="text" placeholder="请输入联系人手机号" id="telphone" name="telphone" value="<%=joinmodel.join_phone %>" style="background:transparent;border:1px solid #a0a29e" />
		        <br/>        
        <input type="hidden" value="<%=Request.QueryString["id"] %>" name="id"/>
        <input type="hidden" value="submit" name="action"/>
                  </dl>
        </div>
       
    	<div class="o_btn clearfix">
    		<input type="button" class="o_btn_back ts1" onclick="history.go(-1);" value="返回" />
    		
            <%if (dt.Rows.Count > 0)
              { %><input  type="button" class="o_btn_submit ts1" value="已预约" /> <%}
              else
              {%>  <input  type="submit" class="o_btn_submit ts1" value="预约" /> <%} %>	</div>
    
</div>
</form>
<script>
    $('#lianxi').click(function () {
        $("#p1").toggle();
    })
    function showTip(tipTxt) {
        var div = document.createElement('div');
        div.innerHTML = '<div class="deploy_ctype_tip"><p>' + tipTxt + '</p></div>';
        var tipNode = div.firstChild;
        $("#wrap").after(tipNode);
        setTimeout(function () {
            $(tipNode).remove();
        }, 2000);
    }
    function tgSubmit() {
        if ($("#truename").val() == '') {
            showTip('名字不能为空！');
            return false;
        };
        if ($("#telphone").val() == '') {
            showTip('电话不能为空！');
            return false;
        };
        var tel = $("#telphone").val();
        var isMobile = /^(?:1\d)\d{6}(\d{3}|\*{3})$/;
        if (!isMobile.test(tel)) {
            showTip('电话号码格式错误');
            return false;
        };
        var text = $('#isbig option:selected').text();
        if (text == '无') {
            showTip('请选择是否当带头大哥');
            return false;
        };
        //alert('bb');
        // alert($lrjUser['honesty']);
        // return false;
        return true;
    }
	
	</script>
</body>
</html>
